package com.test.base;

import com.test.pages.HomePage;
import com.test.pages.LoginPage;



/**
 * Created by xuedonglei on 2017/5/3.
 */
public class LoginApp extends InitAppium{

    public static void login(String userName,String pwd){
        HomePage pagehome = new HomePage(driver);
        pagehome.clickButton(pagehome.btnEmailLogin);
        LoginPage page = new LoginPage();
        page.inputKey(page.userName,userName);
        page.inputKey(page.pwd,pwd);
        page.clickButton(page.login);
    }
}
